function deAttByAttsCtl(attId, fieldName, flowId, formName, pageType, index) {
  var ajaxData;
  if (flowId) {
    ajaxData = {
      "flowId": flowId,
      "attachId": attId
    }
  } else {
    ajaxData = {
      "attachId": attId
    }
  }

	ajaxPost('/flow/delAttachForAttsCtl', ajaxData).then((data) => {
		console.log('data', data);
		myMsg(data.msg);
		if (data.code == 200) {
			if (fieldName != null) {
				$(fo(fieldName + 'File' + index)).remove();
			}
			// 刷新附件列表
			reloadAttachment();
		}
	});
}

function delByAttsCtl(attId, fieldName, flowId, formName, pageType, index, isFlow) {
	myConfirm('提示', '您确定要删除么', function() { deAttByAttsCtl(attId, fieldName, flowId, formName, pageType, index, isFlow) });
}